repo.or.cz
/
and.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
11110 - Equidivisions (DFS, maratón colombiana) &&
[and.git]
/
10340 - All in all
/
10340.cpp
blob
50ee1dc1c25e07ed444d1a21238ffe235e6f5f94
1
#include <iostream>
2
#include <string>
3
4
using namespace
std
;
5
6
int
main
(){
7
string s
,
t
;
8
while
(
cin
>>
s
>>
t
){
9
int
i
,
j
;
10
for
(
i
=
0
,
j
=
0
;
i
<
s
.
size
() &&
j
<
t
.
size
(); ++
j
){
11
i
+= (
s
[
i
] ==
t
[
j
]);
12
}
13
cout
<< (
i
==
s
.
size
() ?
"Yes"
:
"No"
) <<
endl
;
14
}
15
}